package com.ciwong.epaper.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.ciwong.epaper.R;
import com.ciwong.epaper.modules.me.bean.BookmarkBean;


/**
 * Created by keepon on 2018/8/7.
 */
public abstract class BaseNewBookItemInView<T> extends LinearLayout {

	protected ImageView mIvIcon;
	protected TextView  mTvName;

	public BaseNewBookItemInView(Context context) {
		this(context,null);
	}

	public BaseNewBookItemInView(Context context, AttributeSet attrs) {
		this(context, attrs,0);
	}

	public BaseNewBookItemInView(Context context, AttributeSet attrs, int defStyleAttr) {
		super(context, attrs, defStyleAttr);
		LayoutInflater.from(this.getContext()).inflate(R.layout.item_view_expansion, this);
		init();
	}

	private void init() {
		mIvIcon = findViewById(R.id.iv_icon);
		mTvName = findViewById(R.id.tv_name);
	}

	public abstract void bindData(T bean);
}
